package top.baselitch.liteorm;

import top.baselitch.liteorm.annotation.Table;

public class Utils {
    public static <T> void verifyDaoInterface(Class<T> daoClass){
        if(!daoClass.isInterface()){
            throw new IllegalArgumentException("this Dao not interface");
        }
    }
    public static <T> void verifyTableModel(Class<T> tableModel){
        if(!tableModel.isAnnotationPresent(Table.class)){
            throw new IllegalArgumentException("this Class not tableMode");
        }
    }
}
